import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();

        //write your code here......
        int i = 0;
        if((d-0.5) >= d){
            d = d+1.0;
            i = (int)d;
        } else {
            i = (int)d;
        }

        System.out.println(i);
    }

    public static String func(String str){
        StringBuilder stringBuilder = new StringBuilder();
        for(int i=0; i<str.length(); i++){
            char ch = str.charAt(i);
            if(stringBuilder.indexOf(ch + "") == -1) {
                stringBuilder.append(ch);
            }
        }
        return stringBuilder.toString();
    }

    public static void main78(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextLine()) { // 注意 while 处理多个 case
            String str = in.nextLine();
            String ret = func(str);
            System.out.println(ret);
        }
    }

    public int firstUniqChar(String s) {
        char[] arr = s.toCharArray();
        for (int i=0; i < arr.length; i++) {
            int count = 0;
            int j;
            for (j = i + 1; j < arr.length; j++) {
                if (arr[i] == arr[j]) {
                    break;
                }
                count++;
            }
            if (count == j) {
                return i;
            }
        }
        return -1;
    }

    public static  int[] twoSum(int[] nums, int target) {
        int[] arr = {0,0};
        for(int i = 0; i< nums.length;i++){
            for(int j= 1;j<nums.length;j++)
            {
                if(nums[i]+nums[j]==target){
                    arr[0]=i;
                    arr[1]=j;
                }
            }
        }
        return arr;
    }

    public static void main66 (String[] args) {
        int[] nums = {3,3};
        int[] num = twoSum(nums,6);
        String ret = Arrays.toString(num);
        System.out.println(ret);
    }

    public static String myToString (int[] arr) {
        String ret ="[";
        for (int i = 0; i < arr.length; i++) {
            ret += arr[i];
            if(i< arr.length-1){
                ret += ", ";
            }
        }
        ret += "]";
        return ret;
    }
    public static void main77 (String[] args) {
        int[] arr = {1,2,3,4,5};
//        for (int x : arr ){                     //for each 打印数组
//            System.out.print(x+" ");
//        }
//        System.out.println();

//        String ret =  Arrays.toString(arr);       //toString 方法
//        System.out.println(ret);

        String ret =  myToString(arr);
        System.out.println(ret);
    }

    public static void main14 (String[] args) {
        int count = 0;
        for (int i = 1; i < 101; i++) {
            if(i % 10 == 9)
                count++;
            if(i / 10 == 9)
                count++;
        }
        System.out.println(count);
    }


    public static void main13(String[] args) {
        for (int i = 100; i < 1000; i++) {
            int a = i / 100;
            int b = (i % 100) / 10;
            int c = (i % 100) % 10;
            if(Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3)==i)
                System.out.println(i);
        }
    }

    public static void main12(String[] args) {
        Scanner scan = new Scanner(System.in);
        Scanner scann = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scann.nextInt();
        int c = a % b;
        while (c != 0){
            a = b;
            b = c;
            c = a % b;
        }
        System.out.println(b);

    }

    public static void main11(String[] args) {
        for (int i = 1; i < 10; i++) {
            for (int j = i; j < 10; j++) {
                System.out.print(i+"*"+j+"="+(i*j));
                System.out.print("  ");
            }
            System.out.println();
        }
    }

    public static void main10(String[] args) {
        for (int i = 1000; i <2001 ; i++) {
            if(i % 4==0 && i % 100!= 0)
                System.out.println(i);
            else if (i % 400 == 0)
                System.out.println(i);
        }
    }

    public static void main9(String[] args) {

        for (int i = 1; i <= 100; i++) {
            int top = 0;
            for (int j = 2; j <= 100; j++) {
                if (i%j==0)
                    top++;
            }
            if(top == 1)
                System.out.println(i);
        }
    }

    public static void main8(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i = scan.nextInt();
        int top = 0;
        for (int j = 2; j <= i; j++) {
            if(i%j == 0)
            {top++;}
        }
        if (top == 1)
            System.out.println(i+"是素树");
        else
            System.out.println("不是素数");
    }

    public static void main7(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        int num = random.nextInt(100);
        while (true){
            int a = scan.nextInt();
            if(a > num)
                System.out.println("猜大了");
            else if (a<num)
                System.out.println("猜小了");
            else {
                System.out.println("猜中了！");
                break;
            }
        }
    }

    public static void main6(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入你的姓名：");
        String name = scan.nextLine();
        System.out.println(name);
        int a = scan.nextInt();
        System.out.println(a);
    }


    public static void main5(String[] args) {

        int sum = 0;
        for (int j = 1; j <= 6; j++) {
            int ret = 1;
            for (int i = 1; i <= j; i++) {
                ret *= i;
            }
            sum += ret;
        }
        System.out.println(sum);
    }

    public static void main4(String[] args) {
        int i = 1;
        while (i<= 100){
            if(i%3==0 && i%5==0){
                System.out.println(i);
                i++;
                continue;
            }
            i++;
        }
    }


    public static void main3(String[] args) {
        int i= 1;
        int sum = 0;
        while (i<=100){
            if (i%2==1)
                sum += i;
            i++;
        }
        System.out.println("偶数="+sum);
    }



    public static void main2(String[] args) {
        int i = 1;
        int n = 0;
        while (i<=100){
            if (i % 2 == 0 )
            n = n + i;
            i++;
        }
        System.out.println("100以内偶数的和="+ n );
    }

    public static void main1(String[] args) {
        int i = 1;
        while (i <= 10){
            System.out.print(i+" ");
            i++;
        }
    }
}
